/*
 * buzzer.h
 *
 * Created: 8/19/2013 3:27:03 PM
 *  Author: Ken Arok
 *
 *
 * \brief Middleware driver of Buzzer Interface.
 *
 * Copyright (c) 2013 PT Hanindo Automation Solutions. All rights reserved.
 *
 */

/** \section section_buzzer_driver Buzzer Driver
 * \brief This module describes how to user API library of the buzzer.
 */

#ifndef BUZZER_H_
#define BUZZER_H_

#include "idefs.h"

/*! \defgroup BUZZER_DRIVERS The Driver of Buzzer
 * \{
 */

/** \brief Initialize the Buzzer.
 * <pre><buzzer.h></pre>
 * <pre>\b void \b vBuzzerInit(void);</pre>
 *
 */
extern void vBuzzerInit(void);

/** \brief Turn the Buzzer ON/OFF.
 * <pre><buzzer.h></pre>
 * <pre>\b void \b vBuzzerSwitch(const uint8_t _on_off, uint32_t _val);</pre>
 *
 * @param _on_off
 * <pre>iON = Buzzer ON</pre>
 * <pre>iOFF = Buzzer OFF</pre>
 * @param _val	Timer value in second. 0 means immediate.
 *
 */ 
extern void vBuzzerSwitch(const uint8_t _on_off, uint32_t _val);

/**
 * \}
 */

#endif /* BUZZER_H_ */
